package server;

public class Journal {
	private int division, journal;
	private String nurse, doctor, patient;

	public Journal(int journal, int division, String nurse, String doctor, String patient) {
		this.journal = journal;
		this.division = division;
		this.nurse = nurse;
		this.doctor = doctor;
		this.patient = patient;
	}

	public int getJournalNbr() {
		return journal;
	}

	public boolean atDivision(int otherDiv) {
		return division == otherDiv;
	}

	public boolean isNurse(String otherNurse) {
		return nurse.equals(otherNurse);
	}

	public String toString() {
		return journal + " " + division + " " + doctor + " "
				+ nurse;
	}
}